package mudclient;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

public class MudClientApplication {

	public static void createAndShowGUI() {
		mainFrame = new MudClientMainFrame();
		mainFrame.setVisible(true);
	}
	
	public static MudClientMainFrame getMainFrame() { 
		return mainFrame;
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch(UnsupportedLookAndFeelException e) { 
			
		} catch(ClassNotFoundException e) {
			
		} catch(IllegalAccessException e) {
			
		} catch(InstantiationException e) {
			
		}
	            
		javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                createAndShowGUI();
            }
        });
	}
	
	private static MudClientMainFrame mainFrame;

}
